import 'package:flutter/material.dart';
import 'package:myapp/app/utils/platform_utils.dart';

class NoRippleBehavior extends ScrollBehavior {
  @override
  Widget buildViewportChrome(
      BuildContext context, Widget child, AxisDirection axisDirection) {
    if(PlatformUtils.isWeb) return super.buildViewportChrome(context, child, axisDirection);
    if (PlatformUtils.isAndroid || PlatformUtils.isFuchsia) return child;
    return super.buildViewportChrome(context, child, axisDirection);
  }
}
